﻿using Domain.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Repositorys
{
    public interface ICFFKRepositoy
    {
        /// <summary>
        /// 分页查询1级机构表
        /// </summary>
        /// <returns></returns>
        Task<List<CFFK>> CFFKSelect(int pageIndex,int pageSize);

        /// <summary>
        /// 查询数据总数
        /// </summary>
        /// <returns></returns>
        int CFFKSelectCount();

        /// <summary>
        /// 添加1级机构表数据
        /// </summary>
        /// <param name="cFFK"></param>
        /// <returns></returns>
        Task<int> CFFKInsertAsync(CFFK cFFK);

        /// <summary>
        /// 删除1级机构表数据
        /// </summary>
        /// <param name="cFFK"></param>
        /// <returns></returns>
        Task<int> CFFKDeleteAsync(CFFK cFFK);

        /// <summary>
        /// 按id查询1级结构表数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<CFFK> CFFKSelectByIdAsync(int id);

        /// <summary>
        /// 修改1级结构编号
        /// </summary>
        /// <param name="cFFK"></param>
        /// <returns></returns>
        Task<int> CFFKUpdateAsync(CFFK cFFK);

        /// <summary>
        /// 查询全部1级机构表数据
        /// </summary>
        /// <returns></returns>
        Task<List<CFFK>> CFFKSelectOption();

        /// <summary>
        /// 按名称查询对应的1级机构表数据
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public Task<CFFK> CFFKSelectByName(string name);
    }
}
